﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/AccountSite.Master" Inherits="System.Web.Mvc.ViewPage<Entity.Car_Rental.UserBases>" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    更改密码
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteMap" runat="server">
    <a href="/Home/Index">首页</a> &gt; 更改密码
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>更改密码</legend>
            <div style="margin-bottom: 10px">
                <%: Html.ValidationSummary(true) %></div>
            <div class="editor-label">
                原密码：
            </div>
            <div class="editor-field">
                <%: Html.Hidden("Name",Web.CurrentLoginInfo.UserName)%>
                <%: Html.PasswordFor(m => m.Password, new { @class = "input" })%>
                <%: Html.ValidationMessageFor(m => m.Password)%>
            </div>
            <div class="clear">
            </div>
            <div class="editor-label">
                新密码：
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.NewPassword, new { @class = "input" })%>
                <%: Html.ValidationMessageFor(m => m.NewPassword) %>
            </div>
            <div class="clear">
            </div>
            <div class="editor-label">
                确认新密码：
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.ConfirmPassword, new { @class = "input" })%>
                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>
            <div class="clear">
            </div>
            <p>
                <input type="submit" value="更改密码" class="button" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
